package net.sf.rose.file.excel.poi.message;

import net.sf.rose.jdbc.PageBean;

/**
 * 单元格执行消息
 */
public class CellMessage {

    /** 行号 */
    private int row = 0;

    /** 列号 */
    private int col = 0;

    /** 成功解析 */
    private boolean success = true;

    /** 失败原因 */
    private String message = null;

    public CellMessage() {
        super();
    }

    public CellMessage(PageBean page) {
        super();
        this.success = page.isSuccess();
        this.message = page.getMessage();
    }

    public String toString() {
        return "row:" + row + ";col:" + col + ";" + message;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getCol() {
        return col;
    }

    public void setCol(int col) {
        this.col = col;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
